<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>代码生成器</title>
</head>
<body>
    <form action="/createClass" method="post" datatype="application/json">
        <div style="width: 100%; min-height: 200px; border: 0px silver solid;float: left;">
            <div style="width: 49.5%;  float: left; ">
                <h3>添加实体类</h3>

                <textarea id="fields" name="fields" style="width: 99%; height: 400px;">

                    {
                        "table": "groupBuy",
                        "class": "GroupBuy",
                        "type": "mysql",
                        "package": "cn.studyou",
                        "createName": "william",
                        "column": {
                          "id":"int",
                          "activityId":"int",
                          "mobile":"String",
                          "subActivityIds":"String",
                          "money":"int",
                          "version":"int",
                          "isDelete":"int"
                        }
                    }
                </textarea>
            </div>

            <div style="width: 49.5%; height: 170px; float:right;">
                <h3>添加业务类</h3>
                <hr/>
                <input type="checkbox" value="1" checked=checked name="service" id="service"/> Service<br/>
                <input type="checkbox" value="1" checked=checked name="mapper" id="dao"/> mapper<br/>
                <input type="checkbox" value="1" checked=checked name="entity" id="entity"/> Entity<br/>
                <input type="checkbox" value="1" checked=checked name="serviceImpl" id="serviceImpl"/> ServiceImpl<br/>
                <input type="checkbox" value="1" checked=checked name="mapperXml" id="mapperXml"/> mapperXml<br/>
                <input type="checkbox" value="1" checked=checked name="dubbo" id="dubbo"/> dubboXml<br/>
                <input type="checkbox" value="1" checked=checked name="controller" id="controller"/> controller<br/>
                <input type="checkbox" value="1" checked=checked name="apiController" id="apiController"/> apiController<br/>
                <input type="checkbox" value="1" checked=checked name="viewList" id="viewList"/> viewList<br/>
                <input type="checkbox" value="1" checked=checked name="viewAdd" id="viewAdd"/> viewAdd<br/>
                <input type="checkbox" value="1" checked=checked name="viewEdit" id="viewEdit"/> viewEdit<br/>
                <br>
            </div>
        </div>
        <hr>
        <p>
            <input type="submit" id="commit" name="commit" value=" 提  交 " style="margin-left: 47%">
        </p>
    </form>
    {% if msg %}
        <strong>msg:</strong> {{ msg }}
    {% endif %}
    {% if file_name %}
        <strong>下载文件:</strong> <a href="/download/{{ path_dir_name }}/{{ file_name }}" >{{ file_name }}</a>
    {% endif %}

</body>
</html>